﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Attack : RightClickOption 
{	
	public string objName;
	public LifeController lifeController;

	void Start () 
	{	
		sortingOrder = 1;
		actionName = "Attack " + objName;
	}

	public override void Action (GameObject sender)
	{		
		sender.GetComponent<MotionController> ().Attack (lifeController);
	}
}
